﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Tracy.Plugins.DownloadAdapters.ServiceDefinition
{
    [DataContract(Namespace = "")]
    public class UTorrentSettings
    {
        [DataMember(Name = "build", Order = 1)]
        public int Build { get; set; }

        [DataMember(Name = "settings", Order = 2)]
        public List<Setting> Settings { get; set; }

        [CollectionDataContract(Namespace = "")]
        public class Setting : List<object>
        {
            public string Name
            {
                get { return this[0].ToString(); }
                set { this[0] = value; }
            }
            public string Value
            {
                get { return this[2].ToString(); }
                set { this[2] = value; }
            }

        }
    }

    
}
